<?php

$params = require __DIR__ . '/params.php';

$config = [
    'defaultRoute' => 'member',
    'homeUrl' => '/index.php/admin/default/index',
    // 路径别名
    'aliases' => [
//        '@bower-asset' => '@vendor/bower-asset',
        // '@npm'   => '@vendor/npm-asset',
    ],
    'components' => [
        'user' => [
            'class' => 'yii\web\User',
            'identityClass' => 'app\modules\admin\models\User',
            'enableAutoLogin' => true,
            'loginUrl' => '/index.php/admin/default/login',
        ],
        // 'errorHandler' => [
        //     // use our error handler in ErrorController
        //     'class' => 'yii\web\ErrorHandler',
        //     'errorAction' => 'errors/error',
        // ],
    ],
    'params' => $params,
];

return $config;
